package com.biostime.springdraw.modules.sd.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.biostime.springdraw.common.service.CrudService;
import com.biostime.springdraw.modules.sd.dao.SharegridDao;
import org.springframework.transaction.annotation.Transactional;
import com.biostime.springdraw.modules.sd.entity.Sharegrid;

/**
 * 分享奖品表Service
 * @author chenweicheng
 * @version 2016-05-03
 */
@Service
@Transactional
public class SharegridService extends CrudService<SharegridDao, Sharegrid> {
	public List<Sharegrid> getByShareId(String shareId) {
		return dao.getByShareId(shareId);
	}
	
	public void touchGrid(String gridId){
		dao.touchGrid(gridId); 
	}
	
	public void recoveryGrid(int num){
		dao.recoveryGrid(num);
	}
}
